using System.Linq;
using Tools.Domain.Specifications;
using Webshop20.Domain.Orders.Core;

namespace Webshop20.Domain.Orders.Specifications
{
    public class MinimumOrderPositionsSpecification : Specification<Order>
    {
        public MinimumOrderPositionsSpecification() : base(o=>o.Positions.Count() > 0, "NO_ORDER_POSITION")
        {}
    }
}